package com.yhx.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.yhx.mapper.SetmealCheckgroupMapper;
import com.yhx.pojo.SetmealCheckgroup;
import com.yhx.service.SetmealService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class SetmealCheckgroupServiceImpl implements SetmealService {
    @Resource
    private SetmealCheckgroupMapper setmealCheckgroupMapper;
    @Override
    public List<SetmealCheckgroup> listBySetmealId(int setmealId) {
        QueryWrapper<SetmealCheckgroup> setmealCheckgroupQueryWrapper = new QueryWrapper<>();
        setmealCheckgroupQueryWrapper.eq("setmeal_id", setmealId);
        return setmealCheckgroupMapper.selectList(setmealCheckgroupQueryWrapper);
    }
}
